package com.cw.mapper;

import com.cw.beans.Role;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Collections;
import java.util.List;

@Mapper
public class RoleMapperImpl implements RoleMapper{
    @Autowired
    private RoleMapper roleMapper;
    public Role getRoleById(int rid) {
        return  roleMapper.getRoleById(rid);
    }

    @Override
    public List<Role> getRole() {
        return roleMapper.getRole();
    }

//    @Override
//    public List<Role> getRole1(String rname) {
//        return roleMapper.getRole1(rname);
//    }
}
